package Ldzy.Tabel.com;
import  Ldzy.bean.com.Goods;

import Ldzy.bean.com.Goods;
import Ldzy.bean.com.User;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;

public class GoodsHockTable {
    private  static Map<String, Goods> goodse=new LinkedHashMap<String,Goods>();
    static {
        goodse.put("苹果8",new Goods("001","苹果8",999.0,10));
        goodse.put("苹果9",new Goods("002","苹果9",1999.0,10));
        goodse.put("苹果10",new Goods("003","苹果10",2999.0,10));
        goodse.put("苹果11",new Goods("004","苹果11",3999.0,10));
        goodse.put("苹果12",new Goods("005","苹果12",4999.0,10));
    }
    public static Collection<Goods> getAllgoodse(){

        return goodse.values();
    }
    public static Goods getUserByName(String name){
        return  goodse.get(name);
    }


}
